# Initiate a editing sequence
begin_memory_edit -hardware_name "USB-Blaster \[USB-0\]" -device_name \
 "@1: EP3C40/EP4CE(30|40) (0x020F40DD)"
# Write memory content using the hex memory file
#update_content_to_memory_from_file -instance_index 0 -mem_file_path \
 "image_8x1024.hex" -mem_file_type hex
# Read memory content and save back to a hex memory file
#save_content_from_memory_to_file -instance_index 0 -mem_file_path \
 "exported_image_8x1024.hex" -mem_file_type hex
# Write memory content using the mif memory file
 #
cd "D:/3DTV/led-icons/mif"
set files [glob *.mif]

foreach file $files {
update_content_to_memory_from_file -instance_index 0 -mem_file_path \
 $file -mem_file_type mif
  #  puts $file
    #after 500
}
 

# Read memory content and save back to a mif memory file
#save_content_from_memory_to_file -instance_index 0 -mem_file_path \
 "image_8x1024.mif" -mem_file_type mif
# End the editing sequence
end_memory_edit

